﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MCB.Net.Server;
using System.Net.Sockets;
using System.Net;
using System.IO;

namespace MCB.Net.Test
{
    class Program
    {
        private static TcpServer server = new TcpServer(3, 25);
        
        static void Main(string[] args)
        {
            server.Start(new IPEndPoint(IPAddress.Loopback, 9999));

            //TcpClient client = new TcpClient();
            //client.Connect("127.0.0.1", 9999);

            //StreamWriter writer = new StreamWriter(client.GetStream());
            //writer.AutoFlush = true;

            //System.Timers.Timer t = new System.Timers.Timer(5000);
            //t.Elapsed += (o, a) =>
            //    {
            //        writer.WriteLine("hello");
            //        t.Stop();
            //    };
            //t.Start();
            Console.ReadLine();
        }


    }
}
